package ysu.sxm.ptjc.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import ysu.sxm.ptjc.Domin.TopOfStratisProReq;
import ysu.sxm.ptjc.Service.TopStatisProsService;

@RestController
public class TopOfStatisProsServlet {
    @Autowired
    TopStatisProsService topStatisProsService;
    @PostMapping(path = "/toppros",produces = "application/json; charset=utf-8")
    public String toppros(@RequestBody TopOfStratisProReq topOfStratisProReq){
        System.out.println("前端执行的条件"+topOfStratisProReq.toString());
        return topStatisProsService.topPros(topOfStratisProReq);
    }
}
